/**
 * 
 */
package com.qunar.mina.app.service;

import java.util.List;

import org.apache.lucene.index.Term;

/**
 * @author tao.zhang
 */
public interface IndexService {
    
    public void createAllIndex();

    public void addIndex(Object o, String WriterName);

    public void batchAddIndex(List<?> list, String WriterName);

    public void delIndex(String WriterName, Term term);

    public void batchDelIndex(String WriterName, Term... terms);

    public void updateIndex(Object o, String WriterName, Term term);

    public void batchUpdateIndex(List<?> list, String WriterName, Term...terms);

}
